package cn.terminus.client.customer.settledenterpriseinfo.service;

import cn.terminus.client.customer.analysis.param.SettledEnterpriseAnalysisParam;
import cn.terminus.client.customer.analysis.result.CustomerNatureIndustryResultList;
import cn.terminus.client.customer.analysis.result.SettledEnterpriseLabelNumResult;
import cn.terminus.client.customer.settledenterpriseinfo.param.*;
import cn.terminus.client.customer.settledenterpriseinfo.result.SettledEnterpriseInfoResult;
import cn.terminus.result.common.context.TerminusCallContext;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.result.TerminusResult;

import java.util.List;

/**
 * (SettledEnterpriseInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:19:08
 */
public interface SettledEnterpriseInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(AddSettledEnterpriseInfoParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(SettledEnterpriseInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<SettledEnterpriseInfoResult> gets(SettledEnterpriseInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(SettledEnterpriseInfoDeleteParam param, TerminusCallContext context) throws ServiceException;


    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<SettledEnterpriseInfoResult>> page(SettledEnterpriseInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;

    TerminusResult<CustomerNatureIndustryResultList> analysisSettledEnterpriseWithContract(SettledEnterpriseAnalysisParam param, TerminusCallContext terminusContext) throws ServiceException;

    TerminusResult<List<SettledEnterpriseLabelNumResult>> analysisSettledEnterpriseLabel(SettledEnterpriseAnalysisParam param, TerminusCallContext terminusContext) throws ServiceException;
}
